<html>
<head>
	<title></title>
	<script type="text/javascript">

	function a(){
		var myvar = "my Object";
		this.getInfo = function(){
			return "This is " + myvar;
		}
	}

	</script>
</head>
<body>
<script type="text/javascript">
	var myObject = new a();
	console.debug(myObject.getInfo());
	a.getInfo = function(){ return "New " + myVar};
	console.debug(myObject.getInfo());
	myObject.getInfo = function(){ return "New"};
	console.debug(myObject.getInfo());
</script>
</body>
</html>